package com.token.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @auther: henriy
 * @Date: 2023/11/29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "user_id_card")
public class UserIdCard implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 用户真实名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 性别
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 民族
     */
    @TableField(value = "nationality")
    private String nationality;

    /**
     * 出生日期
     */
    @TableField(value = "birth")
    private LocalDate birth;

    /**
     * 住址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 公民身份号码
     */
    @TableField(value = "identification_number")
    private String identificationNumber;

}
